﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000ACF RID: 2767
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MarkReadMailScRsp : IMessage<MarkReadMailScRsp>, IMessage, IEquatable<MarkReadMailScRsp>, IDeepCloneable<MarkReadMailScRsp>, IBufferMessage
	{
		// Token: 0x170022E8 RID: 8936
		// (get) Token: 0x06007BCA RID: 31690 RVA: 0x0014A6E0 File Offset: 0x001488E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MarkReadMailScRsp> Parser
		{
			get
			{
				return MarkReadMailScRsp._parser;
			}
		}

		// Token: 0x170022E9 RID: 8937
		// (get) Token: 0x06007BCB RID: 31691 RVA: 0x0014A6E7 File Offset: 0x001488E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MarkReadMailScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170022EA RID: 8938
		// (get) Token: 0x06007BCC RID: 31692 RVA: 0x0014A6F9 File Offset: 0x001488F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MarkReadMailScRsp.Descriptor;
			}
		}

		// Token: 0x06007BCD RID: 31693 RVA: 0x0014A700 File Offset: 0x00148900
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MarkReadMailScRsp()
		{
		}

		// Token: 0x06007BCE RID: 31694 RVA: 0x0014A708 File Offset: 0x00148908
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MarkReadMailScRsp(MarkReadMailScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.id_ = other.id_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007BCF RID: 31695 RVA: 0x0014A739 File Offset: 0x00148939
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MarkReadMailScRsp Clone()
		{
			return new MarkReadMailScRsp(this);
		}

		// Token: 0x170022EB RID: 8939
		// (get) Token: 0x06007BD0 RID: 31696 RVA: 0x0014A741 File Offset: 0x00148941
		// (set) Token: 0x06007BD1 RID: 31697 RVA: 0x0014A749 File Offset: 0x00148949
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170022EC RID: 8940
		// (get) Token: 0x06007BD2 RID: 31698 RVA: 0x0014A752 File Offset: 0x00148952
		// (set) Token: 0x06007BD3 RID: 31699 RVA: 0x0014A75A File Offset: 0x0014895A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x06007BD4 RID: 31700 RVA: 0x0014A763 File Offset: 0x00148963
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MarkReadMailScRsp);
		}

		// Token: 0x06007BD5 RID: 31701 RVA: 0x0014A771 File Offset: 0x00148971
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MarkReadMailScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.Id == other.Id && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007BD6 RID: 31702 RVA: 0x0014A7B0 File Offset: 0x001489B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007BD7 RID: 31703 RVA: 0x0014A808 File Offset: 0x00148A08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007BD8 RID: 31704 RVA: 0x0014A810 File Offset: 0x00148A10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007BD9 RID: 31705 RVA: 0x0014A81C File Offset: 0x00148A1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Id != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Id);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007BDA RID: 31706 RVA: 0x0014A874 File Offset: 0x00148A74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007BDB RID: 31707 RVA: 0x0014A8CC File Offset: 0x00148ACC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MarkReadMailScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007BDC RID: 31708 RVA: 0x0014A91C File Offset: 0x00148B1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007BDD RID: 31709 RVA: 0x0014A928 File Offset: 0x00148B28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Id = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002F47 RID: 12103
		private static readonly MessageParser<MarkReadMailScRsp> _parser = new MessageParser<MarkReadMailScRsp>(() => new MarkReadMailScRsp());

		// Token: 0x04002F48 RID: 12104
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002F49 RID: 12105
		public const int RetcodeFieldNumber = 1;

		// Token: 0x04002F4A RID: 12106
		private uint retcode_;

		// Token: 0x04002F4B RID: 12107
		public const int IdFieldNumber = 9;

		// Token: 0x04002F4C RID: 12108
		private uint id_;
	}
}
